package sanrenxing.dayEnd.backRepertoryTotal.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @desrciption 证券交易数据
 * @auth：yidu  李小锋
 * @date:2021/3/11 0011 - 16:59
 * @version:1:0
 */
public class Transaction implements Serializable {
    private String tranId;	//交易编号	varchar2
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date tranDate;  //成交日期	date
    private int  tranNum;   //交易数量	number
    private double price;	//交易单价	number（20,4）
    private double settMoney;	//结算金额	number
    private double tranMoney;	//交易金额	number
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date settDate;	//结算日期	date
    private String fundId;  //基金id	varchar2
    private String seId;	//证券ID	varchar2
    private String stockId; //券商ID	varchar2
    private String seatId;	//席位ID	varchar2
    private Integer caId;	//现金账户ID	number
    private String may;	   //交易方式 varchar2
    private int BreedRateId;	//交易品种费率id	number
    private double seInte;	//证券利息	number
    private int tranStatus; //交易状态	number 分为 1，处理 2，未处理
    private int actMoney;	//实收金额	number
    private int mark;	//交易标志	number  1,流入 2,流出

    public Transaction() {
    }

    public Transaction(Date tranDate, int tranNum, double price, double settMoney, double tranMoney, Date settDate, String fundId, String seId, String stockId, String seatId, Integer caId, String may, int breedRateId, double seInte, int tranStatus, int actMoney, int mark) {
        this.tranDate = tranDate;
        this.tranNum = tranNum;
        this.price = price;
        this.settMoney = settMoney;
        this.tranMoney = tranMoney;
        this.settDate = settDate;
        this.fundId = fundId;
        this.seId = seId;
        this.stockId = stockId;
        this.seatId = seatId;
        this.caId = caId;
        this.may = may;
        BreedRateId = breedRateId;
        this.seInte = seInte;
        this.tranStatus = tranStatus;
        this.actMoney = actMoney;
        this.mark = mark;
    }

    public Transaction(String tranId, Date tranDate, int tranNum, double price, double settMoney, double tranMoney, Date settDate, String fundId, String seId, String stockId, String seatId, Integer caId, String may, int breedRateId, double seInte, int tranStatus, int actMoney, int mark) {
        this.tranId = tranId;
        this.tranDate = tranDate;
        this.tranNum = tranNum;
        this.price = price;
        this.settMoney = settMoney;
        this.tranMoney = tranMoney;
        this.settDate = settDate;
        this.fundId = fundId;
        this.seId = seId;
        this.stockId = stockId;
        this.seatId = seatId;
        this.caId = caId;
        this.may = may;
        BreedRateId = breedRateId;
        this.seInte = seInte;
        this.tranStatus = tranStatus;
        this.actMoney = actMoney;
        this.mark = mark;
    }

    public String getTranId() {
        return tranId;
    }

    public void setTranId(String tranId) {
        this.tranId = tranId;
    }

    public Date getTranDate() {
        return tranDate;
    }

    public void setTranDate(Date tranDate) {
        this.tranDate = tranDate;
    }

    public int getTranNum() {
        return tranNum;
    }

    public void setTranNum(int tranNum) {
        this.tranNum = tranNum;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getSettMoney() {
        return settMoney;
    }

    public void setSettMoney(double settMoney) {
        this.settMoney = settMoney;
    }

    public double getTranMoney() {
        return tranMoney;
    }

    public void setTranMoney(double tranMoney) {
        this.tranMoney = tranMoney;
    }

    public Date getSettDate() {
        return settDate;
    }

    public void setSettDate(Date settDate) {
        this.settDate = settDate;
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public String getSeId() {
        return seId;
    }

    public void setSeId(String seId) {
        this.seId = seId;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public String getSeatId() {
        return seatId;
    }

    public void setSeatId(String seatId) {
        this.seatId = seatId;
    }

    public Integer getCaId() {
        return caId;
    }

    public void setCaId(Integer caId) {
        this.caId = caId;
    }

    public String getMay() {
        return may;
    }

    public void setMay(String may) {
        this.may = may;
    }

    public int getBreedRateId() {
        return BreedRateId;
    }

    public void setBreedRateId(int breedRateId) {
        BreedRateId = breedRateId;
    }

    public double getSeInte() {
        return seInte;
    }

    public void setSeInte(double seInte) {
        this.seInte = seInte;
    }

    public int getTranStatus() {
        return tranStatus;
    }

    public void setTranStatus(int tranStatus) {
        this.tranStatus = tranStatus;
    }

    public int getActMoney() {
        return actMoney;
    }

    public void setActMoney(int actMoney) {
        this.actMoney = actMoney;
    }

    public int getMark() {
        return mark;
    }

    public void setMark(int mark) {
        this.mark = mark;
    }

    @Override
    public String toString() {
        return "Transaction{" +
                "tranId='" + tranId + '\'' +
                ", tranDate=" + tranDate +
                ", tranNum=" + tranNum +
                ", price=" + price +
                ", settMoney=" + settMoney +
                ", tranMoney=" + tranMoney +
                ", settDate=" + settDate +
                ", fundId='" + fundId + '\'' +
                ", seId='" + seId + '\'' +
                ", stockId='" + stockId + '\'' +
                ", seatId='" + seatId + '\'' +
                ", caId=" + caId +
                ", may='" + may + '\'' +
                ", BreedRateId=" + BreedRateId +
                ", seInte=" + seInte +
                ", tranStatus=" + tranStatus +
                ", actMoney=" + actMoney +
                ", mark=" + mark +
                '}';
    }
}
